class Animal {
    constructor(name) {
        this.name = name;
    }

    walk() {
        console.log(this.name + 'is walking')
    }
}

class Bird extends Animal {
    constructor(name) {
        super(name);
        this.hasWings = true;
    }

    fly() {
        console.log(this.name + ' is flying');
    }
}

const eagle = new Bird('Eagle');
console.log(eagle);
debugger;
